package com.example.neutonote2.data.model;

import androidx.room.Embedded;
import androidx.room.Junction;
import androidx.room.Relation;
import java.util.List;

/**
 * 笔记和标签的关联查询实体类
 */
public class NoteWithTags {
    @Embedded
    public Note note;

    @Relation(
        parentColumn = "id",
        entityColumn = "id",
        associateBy = @Junction(
            value = NoteTagCrossRef.class,
            parentColumn = "noteId",
            entityColumn = "tagId"
        )
    )
    public List<Tag> tags;
} 